// http://120.211.58.75:50003/admin.Gaindex/department
import request from "@/utils/request";
// /bankNewInfo
// /admin.index/index
export const department = (data) => {
  // console.log(data);
  return request({
    url: "/admin.Gaindex/department",
    method: "POST",
    data,
  });
};
// 搜索部门
// http://120.211.58.75:50003/admin.Gaindex/searchDepartment
export const searchDepartment = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/searchDepartment",
    method: "POST",
    data,
  });
};
// 新增部门
// http://120.211.58.75:50003/admin.Gaindex/addDepartment
export const addDepartment = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/addDepartment",
    method: "POST",
    data,
  });
};
// 修改部门信息
// http://120.211.58.75:50003/admin.Gaindex/editDepartment
export const editDepartment = (data) => {
  // console.log(data);
  return request({
    url: "/admin.Gaindex/editDepartment",
    method: "POST",
    data,
  });
};
// 删除部门
// http://120.211.58.75:50003/admin.Gaindex/delDepartment
export const delDepartment = (data) => {
  // console.log(data);
  return request({
    url: "/admin.Gaindex/delDepartment",
    method: "POST",
    data,
  });
};
